// 自动生成模板UmsMemberLevel
package biz

import "github.com/go-kratos/kratos/v2/log"

// umsMemberLevel表 结构体  UmsMemberLevel
type UmsMemberLevel struct {
	Id                    *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                                //id
	Name                  *string  `json:"name" form:"name" gorm:"comment:等级名称;column:name;size:100;"`                                                  //等级名称
	GrowthPoint           *int     `json:"growthPoint" form:"growthPoint" gorm:"comment:等级需要的成长值;column:growth_point;size:10;"`                         //等级需要的成长值
	DefaultStatus         *bool    `json:"defaultStatus" form:"defaultStatus" gorm:"comment:是否为默认等级[0->不是；1->是];column:default_status;"`                //是否为默认等级[0->不是；1->是]
	FreeFreightPoint      *float64 `json:"freeFreightPoint" form:"freeFreightPoint" gorm:"comment:免运费标准;column:free_freight_point;size:18;"`            //免运费标准
	CommentGrowthPoint    *int     `json:"commentGrowthPoint" form:"commentGrowthPoint" gorm:"comment:每次评价获取的成长值;column:comment_growth_point;size:10;"` //每次评价获取的成长值
	PriviledgeFreeFreight *bool    `json:"priviledgeFreeFreight" form:"priviledgeFreeFreight" gorm:"comment:是否有免邮特权;column:priviledge_free_freight;"`   //是否有免邮特权
	PriviledgeMemberPrice *bool    `json:"priviledgeMemberPrice" form:"priviledgeMemberPrice" gorm:"comment:是否有会员价格特权;column:priviledge_member_price;"` //是否有会员价格特权
	PriviledgeBirthday    *bool    `json:"priviledgeBirthday" form:"priviledgeBirthday" gorm:"comment:是否有生日特权;column:priviledge_birthday;"`             //是否有生日特权
	Note                  *string  `json:"note" form:"note" gorm:"comment:备注;column:note;size:255;"`                                                    //备注
}

// TableName umsMemberLevel表 UmsMemberLevel自定义表名 ums_member_level
func (UmsMemberLevel) TableName() string {
	return "ums_member_level"
}

type UmsMemberLevelRepo interface {
}

type UmsMemberLevelUsecase struct {
	repo UmsMemberLevelRepo
	log  *log.Helper
}

func NewUmsMemberLevelUsecase(repo GreeterRepo, logger log.Logger) *UmsMemberLevelUsecase {
	return &UmsMemberLevelUsecase{repo: repo, log: log.NewHelper(logger)}
}
